package edu.spec.rxz.week05.class1;

public class Animal{
    private String name;
    private String gender;
    private int age;
    private String food;
    public Animal(){
    }
    public Animal(String name,String gender,int age){
        this.name=name;
        this.gender=gender;
        this.age=age;
    }
    //出生
    public void born(){
        System.out.println("I was born with name"+this.name);
    }
    //吃
    public void eat(){
        System.out.println("I eat"+this.food);
    }
    //繁殖
    public void breed(){
        System.out.println

    }
